//******************************** 方法1
//import java.util.Scanner;
//
//class MyThread implements Runnable{
//    @Override
//    public void run() {
//        Scanner scanner = new Scanner(System.in);
//        int n = scanner.nextInt();
//        for (int i = n; i >= 0 ; i--) {
//            System.out.println(i);
//        }
////        try {
////            Thread.sleep(500);
////        } catch (InterruptedException e) {
////            throw new RuntimeException(e);
////        }
//    }
//
//    public MyThread() {
//
//    }
//}
//public class Main {
//    public static void main(String[] args) throws InterruptedException {
//        MyThread thread = new MyThread();
//        Thread t1 = new Thread(thread);
//        t1.start();
//    }
//}


//**************************** 方法2
import java.util.Scanner;

class MyThread implements Runnable{
    @Override
    public void run() {

    }

    public MyThread() {
    }
}
public class Main {
    public static void main(String[] args) throws InterruptedException {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        MyThread thread = new MyThread();
        Thread t1 = new Thread(thread);
        t1.start();
        for (int i = n; i >= 0 ; i--) {
            System.out.println(i);
            Thread.sleep(500);
        }
    }
}